#!/bin/bash
set -x
# ��ȡ�ű����ڵ�Ŀ¼
SCRIPT_DIR=$(dirname "$(realpath "$0")")
# �л����ű����ڵ�Ŀ¼
cd "$SCRIPT_DIR" || exit
rtsp_addr=$1

# ���г��򲢲������
output=$(python3 ./fetch_from_stream.py "$rtsp_addr")
# ���������������������ʽΪ "1920,1080"
IFS=',' read -r width height <<< $output
mpi_enc_test -i frame_by_soft_decode_of_h265file.bin -w $width -h $height -t 16777220 -o 01.h265 -n 20
./get_h265_resolution ./01.h265
